<?php
/**
 * 财务配置
 * Created on 2022/3/31 9:21
 * Created by 管昌虎
 * Email guanchanghu626@163.com
 * @author 管昌虎
 */

namespace GuanChanghu\Enum\Finance;

use GuanChanghu\Enum\BaseEnum;

/**
 * @author 管昌虎
 * Class FinanceChargeWayEnum
 * @method static $this web()
 * @method static $this admin()
 * @package GuanChanghu\Enum\Finance
 * Created on 2022/3/31 9:21
 * Created by 管昌虎
 * Email guanchanghu626@163.com
 */
class FinanceChargeWayEnum extends BaseEnum
{
    /**
     * 手续费手续方式-内扣
     */
    public const FINANCE_SERVICE_CHARGE_WAY_INNER = 0;

    /**
     * 手续费手续方式-外扣
     */
    public const FINANCE_SERVICE_CHARGE_WAY_OUTSIDE = 1;

    /**
     * @return int[]
     */
    protected static function values(): array
    {
        return [
            'inner' => self::FINANCE_SERVICE_CHARGE_WAY_INNER,
            'outside' => self::FINANCE_SERVICE_CHARGE_WAY_OUTSIDE,
        ];
    }

    /**
     * @return array|string[]
     */
    protected static function labels(): array
    {
        return [
            'inner' => function_exists('__') ? __('enums.finance.charge_way.inner') : 'inner',
            'outside' => function_exists('__') ? __('enums.finance.charge_way.outside') : 'outside',
        ];
    }
}
